﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Security.Cryptography;
using System.Collections.Specialized;
using System.IO;
using System.Data.SqlClient;
using System.Net;

public partial class OnlinePay_Alipay02_Default :PageBase
{
    public string PayFormalitiesFeesScale = "";
    public string Balance = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        SystemOptions s = new SystemOptions();//读取系统设置tbl_Options里的总站支付配置信息,若要设置店铺的支付设置,请查询tbl_Shop表

        if (!IsPostBack)
        {
            double OnlinePay_Alipay_PayFormalitiesFeesScale = s["OnlinePay_Alipay_PayFormalitiesFeesScale"].ToDouble(0) / 100;
            PayFormalitiesFeesScale = (OnlinePay_Alipay_PayFormalitiesFeesScale > 0 ? OnlinePay_Alipay_PayFormalitiesFeesScale.ToString() + "%" : "0");
            
            Balance = _Customer.Balance.ToString();

            bool OnlinePay_Alipay_Status_ON = s["OnlinePay_Alipay_Status_ON"].ToBoolean(false);
            if (!OnlinePay_Alipay_Status_ON)
            {
                //未启用此项服务

                return;
            }
        }
    }

    protected override void OnLoad(EventArgs e)
    {
        isRequestLogin = true;

        base.OnLoad(e);
    }
}